package com.cb.domain.model.order;


import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * OrderLog Base Java Bean, base class for the model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 *
 * 订单日志
 */
@Entity
@Table(name="order_log")
public class OrderLog implements Serializable {

    protected Long id;
	protected Long operatorId;
	protected String operatorName;
	protected String action;
	protected java.util.Date time;
	protected String orderId;
	
	@Column(name = "orderId")
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	/**
	 * 	 * @return Long
     * @hibernate.id column="id" type="java.lang.Long" generator-class="native"
	 */
	
	@Id     
    @GeneratedValue(generator="Id_Generator")
    @GenericGenerator(name="Id_Generator", strategy="com.cb.common.util.IdGenerator")
	public Long getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Long aValue) {
		this.id = aValue;
	}	

	/**
	 * 操作人	 * @return Long
	 * @hibernate.property column="operatorId" type="java.lang.Long" length="19" not-null="false" unique="false"
	 */
	
	@Column(name = "operatorId")	
	public Long getOperatorId() {
		return this.operatorId;
	}
	
	/**
	 * Set the operatorId
	 */	
	public void setOperatorId(Long aValue) {
		this.operatorId = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="operatorName" type="java.lang.String" length="50" not-null="false" unique="false"
	 */
	
	@Column(name = "operatorName")	
	public String getOperatorName() {
		return this.operatorName;
	}
	
	/**
	 * Set the operatorName
	 */	
	public void setOperatorName(String aValue) {
		this.operatorName = aValue;
	}	

	/**
	 * 操作行为	 * @return String
	 * @hibernate.property column="action" type="java.lang.String" length="200" not-null="false" unique="false"
	 */
	
	@Column(name = "action")	
	public String getAction() {
		return this.action;
	}
	
	/**
	 * Set the action
	 */	
	public void setAction(String aValue) {
		this.action = aValue;
	}	

	/**
	 * 操作时间	 * @return java.util.Date
	 * @hibernate.property column="time" type="java.util.Date" length="10" not-null="false" unique="false"
	 */
	
	@Column(name = "time")	
	public java.util.Date getTime() {
		return this.time;
	}
	
	/**
	 * Set the time
	 */	
	public void setTime(java.util.Date aValue) {
		this.time = aValue;
	}	

}